home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / UTILITY / DESKTOP / CMAP / CSCRNSVR.H < prev    next >
C/C++ Source or Header  |  1994-05-08  |  1KB  |  44 lines

  1. //
  2. // Filename:    cscrnsvr.h
  3. //
  4. //
  5.  
  6. /*
  7. This is a screen saver which uses colormap animation, a simple technique
  8. to achieve seemingly complicated motion.  The entire source of this
  9. program is provided for your convenience.  If you find it useful, I'll
  10. appreciate if you'll send me $10.  Send the check to:
  11.  
  12. CMAP registration
  13. c/o: Sin-Yaw Wang
  14. 5878 W. Walbrook Dr.
  15. San Jose, CA 95129
  16.  
  17. You can also contact me at sinyaw@netcom.com.
  18.  
  19.  
  20. */
  21. #ifndef _CSCRNSVR_H
  22. #define _CSCRNSVR_H
  23.  
  24. class CScreenSaverWindow : public CFrameWnd
  25. {
  26.     const int THRESHOLD;
  27. public:
  28.     CScreenSaverWindow(void): THRESHOLD(3) {}
  29.     ~CScreenSaverWindow(void) {}
  30.     afx_msg void OnDestroy(void);
  31.     afx_msg void OnKeyDown(UINT, UINT, UINT);
  32.     afx_msg void OnLButtonDown(UINT, CPoint);
  33.     afx_msg void OnMButtonDown(UINT, CPoint);
  34.     afx_msg void OnMouseMove(UINT, CPoint);
  35.     afx_msg void OnRButtonDown(UINT, CPoint);
  36.     afx_msg BOOL OnSetCursor(CWnd *, UINT, UINT);
  37.     afx_msg void OnSysKeyDown(UINT, UINT, UINT);
  38.  
  39.     DECLARE_MESSAGE_MAP()
  40. };
  41.  
  42. #endif // _CSCRNSVR_H
  43.  
  44.